#include<stdio.h>
int main()
{   
    float c,f;
    scanf("%f",&f);
    c =5*(f - 32)/9;
    printf("%0.2f\n",c);
    return 0;
}